#pragma once
#include<string>
#include<list> 
#include<iostream>
#include"mitab_capi.h"
#include"shapefil.h"

using namespace std;

class Common
{
public:
	Common(string P,string P2,string K,int T); 
	Common();
	~Common(); 

	int GetTabHeadItems(string P,list<string> &L,int T);

	int ComparTwoTabHeadItems(list<string> &R,list<string> &L);

	int OutCombineTabByMif(string P,string S1,string S2);

	int OutCombineTabByShp(string P,string S1,string S2); 

	int OutCombineTabByTab(string P,string S1,string S2);

	int GetShpHeadItems(string P,list<string> &L);

	int OutCombineTabs(int T);

	int OutMif();

	int OutTab();

	int OutShp();

private:
	string newFileName;
	list<string> fileItems;
	string intputPath;
	string outputPath;

};

class src1:Common
{
public:
	src1(string P,int T);
	~src1();
	list<string> src1Items;
private:
	string src1Path; 

}; 